<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Style 内置样式</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .head-nav{
            display: flex;
            justify-content: space-between;
            padding: 10px;
            border-bottom: 1px solid #EEF0F4;
        }
        body{
            background: #F9F9FB;
        }

        .list{
            margin: 20px;
        }
        .list .title{
            margin-top: 20px;
            font-weight: bold;
        }
        .list .text{
            margin: 10px 0px;
        }

        .ellipsis{
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
        }
        .manyEllipsis{
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <div class="head-nav">
        <div onclick="history.go(-1)">《</div>
        <div>Style 内置样式</div>
        <div></div>
    </div>

    <div class="list">
        <div class="title">单行溢出</div>
        <div class="text ellipsis">学的不仅是技术，更是梦想；再牛逼的梦想也抵不住傻逼似的坚持！</div>
        
        <div class="title">多行溢出</div>
        <div class="text manyEllipsis">学的不仅是技术，更是梦想；再牛逼的梦想也抵不住傻逼似的坚持！学的不仅是技术，更是梦想；再牛逼的梦想也抵不住傻逼似的坚持！</div>
    </div>
</body>
</html>